home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / StartupTools / PeekQual.readme < prev    next >
Text File  |  1996-09-26  |  3KB  |  76 lines

  1. Short:  Generates WARN (5) codes on qualifiers
  2. Author: Frederic Delacroix
  3. Type:   util/boot
  4. Source: Fish collection
  5.  
  6. The  reason  for  this  program  to be is that I recently had trouble in finding
  7. which  of  the  programs  launched in my user-startup was sometimes crashing the
  8. system.  I wrote a special version of the user-startup that asked before running
  9. all programs, and thought it would be great to have a program allowing to switch
  10. the files automatically when a key was hit.
  11.  
  12. The  best candidates for those keys were of course the qualifiers, since they do
  13. not  interfere  with the output window.  Moreover, there is a new (V36) function
  14. in  the input.device that would make it easy to test:  PeekQualifier().  So here
  15. is this program, which does not even require a window to be opened to work.  The
  16. program fits in one disk block, and is pure, meaning it can be made resident.
  17.  
  18. To use PeekQual, you must have kickstart 2.04 or higher.  It will only work from
  19. CLI, the template is as follows:
  20.  
  21. PeekQual ONQUAL,OFFQUAL
  22.  
  23.     Each  of the arguments, ONQUAL and OFFQUAL, should be a word made of the
  24. following  letters  (I've tried to respect this rule:  lower case for left keys,
  25. and upper case for right ones):
  26.  
  27.     s:    left Shift
  28.     S:    right Shift
  29.     c:    Control
  30.     C:    Caps lock
  31.     a:    left Alt
  32.     A:    right Alt
  33.     g:    left amiGa
  34.     G:    right amiGa
  35.     b:    left mouse Button
  36.     B:    right mouse Button
  37.     m:    Middle mouse button
  38.  
  39.     The  program does the following:  it PeekQualifier()s and then tests the
  40. result:  if all keys given in the ONQUAL argument are pressed and all keys given
  41. in  the  OFFQUAL argument are NOT be pressed, then the program returns WARN (5),
  42. else  it returns OK (0).  The result can then be tested with the IF WARN command
  43. in  a  script  file.   All qualifiers given neither in ONQUAL nor in OFFQUAL are
  44. ignored.
  45.  
  46. Example, in your startup-sequence:
  47.  
  48. PeekQual CSs
  49. IF WARN
  50.  Execute S:User-Startup.Debug
  51. ELSE
  52.  Execute S:User-Startup
  53. ENDIF
  54.  
  55. Frederic Delacroix
  56. 5 rue d'Artres
  57. 59269 Querenaing
  58. FRANCE
  59.  
  60.  
  61. ============================= Archive contents =============================
  62.  
  63. Original  Packed Ratio    Date     Time    Name
  64. -------- ------- ----- --------- --------  -------------
  65.      740     248 66.4% 18-Apr-95 09:30:00  PeekQual.info
  66.      340     282 17.0% 27-Aug-94 15:53:28 +PeekQual
  67.     3364    1667 50.4% 27-Aug-94 15:27:42 +PeekQual.Doc
  68.      875     248 71.6% 21-Mar-95 20:44:14 +PeekQual.Doc.info
  69.     3775    1857 50.8% 27-Aug-94 15:39:58 +PeekQual.DocFra
  70.      875     244 72.1% 21-Mar-95 20:44:12 +PeekQual.DocFra.info
  71.     2119     775 63.4% 27-Aug-94 12:27:20 +PeekQual.s
  72.      875     246 71.8% 21-Mar-95 20:44:12 +PeekQual.s.info
  73.     2122    1126 46.9% 14-Mar-95 14:05:40 +Product-Info
  74. -------- ------- ----- --------- --------
  75.    15085    6693 55.6% 20-Jun-95 17:45:44   9 files
  76.